const express=require('express')
const history=require('connect-history-api-fallback')
const app=express()
app.use(history())
app.use(express.static(__dirname+'/static'))
app.get('/son',(req,res)=>{
    res.send({
        name:'carlos',
        age:25
    })
})
app.listen(5005,err=>{
    if(!err)console.log('服务器启动成功！请访问：http://localhost:5005/son')
})